<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}</title>

    <!-- Scripts -->
    <script src="{{ asset('js/app.js') }}" defer></script>

    <!-- Fonts -->
    <link rel="dns-prefetch" href="//fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
<body>
<div id="app">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h1 class="text-center">常见评论展示形式</h1>
                <form class="form-inline float-right" method="get">
                    @foreach($allDisplayType as $key => $value)
                        <div class="custom-control custom-radio custom-control-inline">
                            <input type="radio" id="display-type-{{ $key }}" name="display_type" value="{{ $key }}" class="custom-control-input" @if($key == $displayType) checked @endif>
                            <label class="custom-control-label" for="display-type-{{ $key }}">{{ $value }}</label>
                        </div>
                    @endforeach
                    <button type="submit" class="btn btn-primary btn-sm">切换</button>
                </form>
            </div>
        </div>
        @yield('comments')
    </div>
</div>
</body>
</html>
